package cn.datax.service.data.market.service;

import cn.datax.common.base.BaseService;
import cn.datax.service.data.market.api.dto.SqlParseDto;
import cn.datax.service.data.market.api.vo.SqlParseVo;
import cn.datax.service.data.market.table.dto.DataTableDto;
import cn.datax.service.data.market.table.entity.DataTableEntity;
import com.aspose.words.Document;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据API信息表 服务类
 * </p>
 *
 * @author yuwei
 * @since 2020-03-31
 */
public interface DataTableService extends BaseService<DataTableEntity> {

    void saveDataResource(DataTableDto DataResource);

    void updateDataResource(DataTableDto DataResource);

    DataTableEntity getDataResourceById(String id);

    void deleteDataResourceById(String id);

    void deleteDataResourceBatch(List<String> ids);

    SqlParseVo sqlParse(SqlParseDto sqlParseDto);

    void copyDataResource(String id);

    void releaseDataResource(String id);

    void cancelDataResource(String id);

    Document wordDataResource(String id) throws Exception;

    Map<String, Object> getDataResourceDetailById(String id);

    void releaseSubmit(String id) ;
}
